from django.db import models
from django.contrib.auth.models import User


# Create your models here.
class Profile(models.Model):
    create_time = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')
    update_time = models.DateTimeField(auto_now=True, verbose_name='更新时间')

    user = models.OneToOneField(User, on_delete=models.CASCADE)
    pkey = models.TextField(null=True)

    def __str__(self):
        return self.user.username
